﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SystemWnioskujacy
{
    public class QueryResult
    {
        string varname = String.Empty;      // Nazwa zmiennej
        string[] values = new String [0];   // Wartości zmiennej

        public QueryResult(string varname)
        {
            this.varname = varname;
        }
        
        public QueryResult(string varname, string[] values)
        {
            this.varname = varname;
            this.values = values;
        }

        public void AddValue(string value)
        {
            string[] tab = new string[values.Length + 1];

            Array.Copy(values, tab, values.Length);
            tab[values.Length] = value;

            values = tab;
        }
    }
}
